//
//  QSSingInInterface.h
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/3/28.
//  Copyright © 2020 DingC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ResponseMessage.h"
#import "QSSignRecordListModel.h"
#import "QSSignNumModel.h"
#import "QSVisitInfoCompanyListModel.h"
#import "QSBindingEnterprisesModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface QSSingInInterface : NSObject


//是否展示全部企业（获取绑定企业的先提条件）
+ (void)getShowAllCompanyAndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSString *result))block;

/**
* @brief 获取当前人员所绑定的公司
 * epAllCompany 是否展示所有企业 0展示所有企业，1绑定企业
*/
+ (void)getCompanyListWithPageIndex:(NSInteger)pageIndex
                       EpAllCompany:(NSString *)epAllCompany
                           andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSBindingEnterprisesModel *result))block;

/**
* @brief 新增签到记录
 *esCompanyKey 拜访企业id
 *esAdress 定位地址
 *esTime 签到时间（时间戳）
*/
+ (void)addSignRecorWithEsCompanyKey:(NSString *)esCompanyKey
                            EsAdress:(NSString *)esAdress
                              EsTime:(NSString *)esTime
                              AndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

/**
* @brief 编辑签到记录
 *esId 签到ID
 *esRemark 备注
 *esPic 图片url
*/
+ (void)insertSignRemarkWithEsid:(NSString *)esId
                            EsRemark:(NSString *)esRemark
                              EsPic:(NSString *)esPic
                              AndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;

/**
* @brief 根据esID得到基础信息展示
 esID 签到返回的ID
*/

+ (void)getSignInfoWithEsId:(NSString *)esid
                     dBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;


/**
 * @brief 获取人员/组员下拉列表
  level 当前人员的等级
*/

+ (void)getApiSignDetailWithLevel:(NSInteger)level
                     dBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;


/**
 * @brief 获取签到记录的签到数量
 * level 当前人员的等级
 * companyKey 如果是服务员，则可以通过切换公司ID切换签到数量
 * epId 组长取epid
 * egid 领导取egid
 */

+ (void)getApiSignNumsWithLevel:(NSInteger)level
                     CompanyKey:(NSString *)companyKey
                           EpId:(NSInteger)epId
                           EgId:(NSInteger)egId
                     andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSSignNumModel *result))block;

/**
* @brief 获取签到记录List
 *flag 默认1 今日签到 2为本月签到 3为上月签到
 *level 前方法得到的级别
 *esRemark 备注
 *epId 组长——如果切换了组员
 *egId 领导——如果切换了组
 *companyKey 服务员——如果切换了公司
*/
+ (void)getSignListWithPageIndex:(NSInteger)pageIndex
                            Flag:(NSInteger)flag
                              Level:(NSInteger)level
                            Epid:(NSInteger)epId
                            Egid:(NSInteger)egId
                      CompanyKey:(NSString *)companyKey
                              AndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSSignRecordListModel *result))block;

@end

NS_ASSUME_NONNULL_END
